<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>v2ex</title>
    <style>
      body{
        margin: 0;
        background: #e2e2e2;
      }
    </style>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
  <script>
    (function () {//设置body height为浏览器高度
      window.onresize = function () {//实时监听浏览器窗口变化
        let wH = window.innerHeight;
        document.body.style.minHeight = wH + 'px';
      }
    })()
  </script>
</html>
